import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router=new Router({
  mode:"hash",
  routes:[
    {
      path:'/home',
      name:'home',
      component:()=>import('@/views/home/Home.vue')
    },
    {
      path:'/category',
      name:'category',
      component:()=>import('@/views/category/Category.vue')
    },
    {
      path:'/shopcart',
      name:'shopcart',
      component:()=>import('@/views/ShopCar/ShopCar.vue')
    },
    {
      path:'/profile',
      name:'profile',
      // component:()=>import('../views/profile/Profile.vue'),
      component:()=>import('@/views/profile/Profile')
    },
  ]

})

export default router

